<?php

defined( '_VALID_MOS' ) or die( 'Restricted access' );

// needed to seperate the ISO number from the language file constant _ISO

$iso = explode( '=', _ISO );

// xml prolog

echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<?php mosShowHead(); ?>

<?php

if ( $my->id ) {

	initEditor();

}

$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;

//script to determine which div setup for layout to use based on module configuration

$user1 = 0;

$user2 = 0;

$colspan = 0;

$right = 0;

// banner combos



//user1 combos

if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {

	$user1 = 2;

	$user2 = 2;

	$colspan = 3;

} elseif ( mosCountModules( 'user1' ) == 1 ) {

	$user1 = 1;

	$colspan = 1;

} elseif ( mosCountModules( 'user2' ) == 1 ) {

	$user2 = 1;

	$colspan = 1;

}



//right based combos

if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {

	$right = 1;

}

?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

<link href="<?php echo $mosConfig_live_site;?>/templates/mediamente/css/template_css.css" rel="stylesheet" type="text/css"/>

</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

<table width="100%"  border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td align="center" valign="top" background="templates/mediamente/images/bg.jpg">      <table width="780"  border="0" cellspacing="0" cellpadding="0">

      <tr>

        <td><img src="templates/mediamente/images/logo1.jpg" width="780" height="98"></td>

      </tr>

      <tr>

        <td align="center" valign="top"><table width="780" border="0" cellpadding="0" cellspacing="0">

          <tr>

            <td width="35" rowspan="2" align="center" valign="top" background="templates/mediamente/images/testo-sx.jpg"><img src="templates/mediamente/images/path-sx.jpg" width="35" height="181"></td>

            <td width="355" height="30" bgcolor="#FFFFFF"><?php mosPathWay(); ?></td>

            <td width="355" height="30" background="templates/mediamente/images/data.jpg" bgcolor="#FFFFFF"><?php echo mosCurrentDate(); ?></td>

            <td width="35" rowspan="2" align="center" valign="top" background="templates/mediamente/images/menu-dx.jpg"><img src="templates/mediamente/images/path-dx.jpg" width="35" height="181"></td>

          </tr>

          <tr>

            <td colspan="2" align="center" valign="top" bgcolor="#FFFFFF"><table width="710" border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td width="504" height="161" align="left" valign="top" bgcolor="#FFFFFF"><p>

                    <?php mosMainBody(); ?>

</p>                    </td>

                  <td width="10" height="161" bgcolor="#FFFFFF">&nbsp;</td>

                  <td width="10" height="161" bgcolor="#F4F4F4">&nbsp;</td>

                  <td width="186" height="161" align="left" valign="top" bgcolor="#F4F4F4"><p>

                    <?php mosLoadModules ( 'right' ); ?>

                  </p>                      </td>

                </tr>

            </table></td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td height="60" align="center" valign="bottom" background="templates/mediamente/images/footer.jpg"><?php mosLoadComponent( "banners" ); ?></td>

      </tr>

    </table></td>

  </tr>

</table>

<p align="center">

  <?php include_once('includes/footer.php'); ?>

</p>

</body>

</html>